<!--
 * @Author: your name
 * @Date: 2020-02-17 10:19:07
 * @LastEditTime: 2020-03-18 11:18:05
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \boot_vue\src\App.vue
 -->
<template>
  <div>
    <el-button type="text"
               @click="gotoPlayBack"
               size="mini">
        回放
    </el-button>
    <el-button type="text"
               @click="onStandardClick"
               size="mini">
        标清
    </el-button>
    <el-button type="text"
               size="mini"
               @click="onHighDefinition">
        高清
    </el-button>
  </div>
</template>

<script>
export default {
  props: {
    playBackPath: String
  },
  methods: {
    onStandardClick () {
      // () => setSharpness(data,'0')
      this.$emit('onStandardClick')
    },
    onHighDefinition () {
      this.$emit('onHigherClick')
    },
    gotoPlayBack () {
      this.$emit('onPlayBackClick')
      this.$router.push(this.playBackPath)
    }
  }
}
</script>
